package com.android.tetris;

import com.android.tetris.utils.Values;
import android.graphics.drawable.Drawable;

/**
 * Man hinh nguoi choi (GameView) duoc cau thanh boi cac Tile
 * @author Administrator
 *
 */
public class Tile {
	private int top, left, size, color;
	private Drawable img;

	/**
	 * Property de lay ma'u cua Tile
	 * @return
	 */
	public int getColor() {
		return color;
	}
	
	/**
	 * Property de set ma'u cua Tile
	 * @param color
	 */
	public void setColor(int color) {
		this.color = color;
	}
	
	/**
	 * Property de lay toa do Top
	 * @return
	 */
	public int getTop() {
		return top;
	}
	
	/**
	 * Property de lay toa do Left
	 * @return
	 */
	public int getLeft() {
		return left;
	}
	
	/**
	 * Property de lay size
	 * @return
	 */
	public int getsize() {
		return size;
	}

	/**
	 * Property de lay image
	 * @return
	 */
	public Drawable getImg() {
		return img;
	}

	/**
	 * Property de set image
	 * @param img
	 */
	public void setImg(Drawable img) {
		this.img = img;
	}
	
	/**
	 * Class constructor: dinh nghia vi tri va kich thuoc cua Tile
	 * @param _top
	 * @param _left
	 * @param _size
	 */
	public Tile(int _top, int _left, int _size){
		top = _top;
		left = _left;
		size = _size;
		color = Values.COLOR_NONE;
	}
}
